<!--产品分类列表-->
<div class="pad_lr_10">
    <form id="info_form" action="{:U('Role/setrule')}" method="post">
    <div class="J_tablelist table_list" data-acturi="">
        <table width="100%" cellspacing="0" id="J_cate_tree">
            <tbody id="catelist">
            {$list}
            </tbody>
            <input type="hidden" name="role_id" value="{$roleid}" />
        </table>
    </div>
        </form>
</div>
<script src="__JS__/jquery/plugins/listTable.js"></script>
<script>
    $(function(){
        $('.J_tablelist').listTable();
    });
    $('#info_form').ajaxForm({success:complate,dataType:'json'});
    function complate(result){
        if(result.status == 1){
            $.dialog.get(result.dialog).close();
            $.pinphp.tip({content:result.msg});
            window.location.reload();
        } else {
            $.pinphp.tip({content:result.msg, icon:'alert'});
        }
    }
</script>
<script src="__JS__/jquery/plugins/jquery.treetable.js"></script>

<script>
    $(function(){
        //initialState:'expanded'
        $("#J_cate_tree").treeTable({indent:20,treeColumn:1});
        $(".J_preview").preview();

    });

</script>
<script type="text/javascript" src="__JS__/roleTree.js?t={:time()}"></script>